#include <ne.h>

class EditorRender
{
    public:
        EditorRender();

        virtual ~EditorRender();

        void setLight(ne::Light *pLight) { mpLight = pLight; }
        ne::Light* getLight() { return mpLight; }

        void createGLSLProgram();

        void render(const ne::Viewport *pViewport);
        void renderModels(const ne::Viewport *pViewport);
        void renderModel(const ne::Viewport *pViewport, const ne::ModelPtr &pModel);

        void renderBlock(const ne::Viewport *pViewport);

    protected:
        ne::Engine *mpEngine;

        ne::Light *mpLight;
};
